package com.kfm.pm.buffer;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class BufferedOutputStreamDemo {

    public static void main(String[] args) {
        // file name  file append  name append
        try (FileOutputStream out = new FileOutputStream("E:\\KFM\\test\\io\\out.txt");
             BufferedOutputStream outputStream = new BufferedOutputStream(out);) {
            outputStream.write(97);
            byte[] bytes = "鹅鹅鹅".getBytes();
            outputStream.write(bytes);
        } catch (IOException e) {
            System.out.println(e.getMessage());
        }
    }
}
